import { LoginData, userinfoData,useAddata, staffData, repairData, storeData,
      storeserveData ,buildings,usedel,usedelAll} from "./type"
import { post, get } from "../request"
export const checkLogin = (data: LoginData) => {

     return post("administrator/checklogin", data);

}
//居民
export const userinfoList = (data: userinfoData) => {

     return get("userinfo/list", data);

}
export const userinfoAdd=(data:useAddata)=>{

     return post("userinfo/add",data);
    
}
export const userinfoDel = (id:usedel) => {

     return get("userinfo/delete", id);

}
export const userinfotype = () => {

     return get("userinfotype/list");

}
export const userinfoDelall = (ids: usedelAll) => {

     return post("userinfo/deleteall", ids);

}
export const buildingList = (params?:buildings) => {

     return get("building/list", params);

}
export const HouseList = (params?:any) => {

     return get("houses/list",params);

}
export const useAsk = (ids:any) => {

     return post("userinfo/updatestate",ids);

}
//
export const staffList = (data: staffData) => {

     return post("staff/list", data);

}
//维修
export const repairList = (data: repairData) => {

     return post("repairs/list", data);

}

export const storeList = (data: storeData) => {

     return post("stores/list", data);

}
export const storeGetone = (id: number) => {

     return post("stores/get", id);

}
export const storeDelete = (id: any) => {

     return post("stores/delete", id);

}
export const storeServe = (data: storeserveData) => {

     return post("storeservices/list", data);

}